//
//  MJUIAlertContentView.m
//  XLDoctor
//
//  Created by longma on 2018/8/7.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import "MJUIAlertContentView.h"

@implementation MJUIAlertContentView

- (void)awakeFromNib{
    [super awakeFromNib];
    
    self.btnCancel.titleLabel.font = MJUIFontBoldMake(16);
    self.btnConfirm.titleLabel.font = MJUIFontBoldMake(16);
    
    self.btnCancel.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.btnConfirm.titleLabel.textAlignment = NSTextAlignmentCenter;
//    self.labTitle.adjustsFontSizeToFitWidth = true;
 
    self.btnCancel.titleLabel.numberOfLines = 0;
    self.btnConfirm.titleLabel.numberOfLines = 0;
}

- (IBAction)actionCancel:(id)sender {
    if(self.cancelBlock)
        self.cancelBlock();
  
}

- (IBAction)actionConfirm:(id)sender {
    if(self.confirmBlock)
        self.confirmBlock();
}

@end
